package top.yekongle.threadpool.common;

import org.springframework.util.CollectionUtils;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Hank Lau
 * @date 2022/8/24
 */
public class NormalTest extends AbstractTest {
	@Override
	public void hello() {

	}

	@Override
	void test1() {
		this.test2();
	}

	public static void main(String[] args) {
		String str1 = "通话";
		String str2 = "重地";
//		String str2 = "通话";

//		System.out.println(str1.hashCode());
//		System.out.println(str2.hashCode());
//
//		Map<String, String> map = new HashMap<>();
//		map.put(str1, "hello1");
//		map.put(str2, "hello2");

//		System.out.println(map.get(str2));

		Student student1 = new Student("张三");
		Student student2 = new Student("张三");
		System.out.println(student1.equals(student2));
		System.out.println(student1.hashCode());
		System.out.println(student2.hashCode());

		Map<Object, String> map = new HashMap<>();
		map.put(student1, "hello1");

		System.out.println(map.get(student1));
		System.out.println(map.get(student2));

	}
}
